package com.softoa.contorller;

import com.softoa.pojo.Dictionary;
import com.softoa.service.IDictionaryService;
import com.softoa.serviceImp.DictionaryServiceImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LinKun
 * @date 2022-6-23 23:44
 */

@RestController
@RequestMapping("/dictionary")
@CrossOrigin
public class DictionaryController {
    @Autowired
    IDictionaryService dictionaryService;

    @RequestMapping("/list")
    java.util.List<Dictionary> showList(){
        return dictionaryService.dictionaryList();
    }
}
